public class Zuoye10{

	public static void main(String[] args){
	
		int[] A = new int[]{20,21,45,92,45,235,5,85,96,654};
		int[] B = new int[A.length];
		int[] C = new int[A.length];
		int a = 0;
		int b = 0;
		for(int i = 0;i < A.length;i++){
			if(A[i] % 2==0){
				C[a] = A[i];
				a++;
				
			}else{
				B[b] = A[i];
				b++;
			
			}
		
		}
		for(int i = 0;i < b;i++){
			System.out.println(B[i]);
			
			
		}for(int i = 0;i < a;i++){
			System.out.println(C[i]);
		}
		
	}
}	